package main.com.java.strategy.design;


import com.lazy.LazyDoubleCheckSingleton;
import com.lazy.LazySimpleSingletion;
import com.threadlocal.ThreadLocalSingleton;

/**
 * Created by Tom.
 */
public class ExectorThread implements Runnable {

    public void run() {

//        Person instance = Person.getInstance();
//        LazyDoubleCheckSingleton instance = LazyDoubleCheckSingleton.getInstance();
//        LazySimpleSingletion instance = LazySimpleSingletion.getInstance();
        ThreadLocalSingleton instance = ThreadLocalSingleton.getInstance();
        System.out.println(Thread.currentThread().getName() + ":" + instance);

    }
}
